package sm.upgrade.exception;

public class ThreeWayConflictException extends UpgradeException {

	private String file;

	private String fieldPath;

	private Object customer;

	private Object upgrade;

	private Object base;

	public Object getCustomer() {
		return customer;
	}

	public Object getUpgrade() {
		return upgrade;
	}

	public Object getBase() {
		return base;
	}

	public String getFile() {
		return file;
	}

	public String getFieldPath() {
		return fieldPath;
	}

	private static final long serialVersionUID = 5762670996629557351L;

	public ThreeWayConflictException(String file, String fieldPath,
			Object customer, Object upgrade, Object base) {
		super("Three way confict in file " + file + " for field " + fieldPath
				+ ":customerValue=" + customer + ",upgradeValue=" + upgrade
				+ ",baseValue=" + base);
		this.file = file;
		this.fieldPath = fieldPath;
		this.customer = customer;
		this.upgrade = upgrade;
		this.base = base;
	}
}
